package org.test.generic;

public class GenericClass<T extends Number & Interface> {
	T name = null;

	public GenericClass(T t) {
		this.name = t;
	}

	public void setName(T t) {
		this.name = t;
	}

	public static void main(String[] args) {
		GenericClass<InterfaceImpl> genericClass = new GenericClass<InterfaceImpl>(
				new  InterfaceImpl());
		System.out.println(genericClass.name);
	}
}
